home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / D-G / DinkClass Shareware Package / DC Template App / DHLdoc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-10  |  1.1 KB  |  59 lines  |  [TEXT/KAHL]

  1. /*
  2.     This is the class deffinition for the DDocument subclass DHLDoc.
  3.     It is responcible only for the creation of the DHLWindow objects
  4.     needed for the display of the results of the tests implemented in
  5.     the DApplication subclass for this program.
  6. */
  7.  
  8. #include "DHLDoc.h"
  9. #include "DHLWindow.h"
  10.  
  11.  
  12. DHLDoc::DHLDoc(void)
  13. {
  14.     //stub
  15. }
  16.  
  17. DHLDoc::~DHLDoc(void)
  18. {
  19.     //stub
  20. }
  21.  
  22.  
  23. DDocument*    DHLDoc::Init( Boolean OpenFromFile)
  24. {
  25.     DDocument *inheritedDoc;
  26.     
  27.     inheritedDoc = inherited::Init(FALSE);
  28.         // FALSE makes sure that no files will be opened
  29.         // becuase this application realy has nothing to
  30.         // do with saving or reading data off the disk.
  31.  
  32.      return inheritedDoc;
  33. }// end of Init method
  34.  
  35.  
  36. DWindow*    DHLDoc::MakeWindow(Boolean hasColorWindows)
  37. {    
  38.     DHLWindow *newWindow;
  39.     
  40.     newWindow = new DHLWindow;
  41.     fDWindow = newWindow;
  42.         
  43.     if (newWindow->Init(this, hasColorWindows))
  44.         return newWindow;
  45.     else
  46.     {
  47.         fDWindow = NULL;
  48.         return fDWindow;
  49.     }    
  50. /*
  51.     This method is a complete overried of the DDocument version of 
  52.     MakeWindow.  It is declared vertual only for the dynamic binding
  53.     of the instance to the method, it dosen't call inherited.
  54. */
  55. }//end of MakeWindow method
  56.  
  57.  
  58.  
  59.